<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Forum</title>
      
    </h:head>
    <h:body>
    <ui:composition template="/templates/layout.xhtml">
        
        <div class="menu">
          <!-- this is the menu, the comments above applies here too -->
          <ui:insert name="menu">
            <ui:include src="/templates/menu2.xhtml" />
          </ui:insert>
        </div>
        <ui:define name="content">
        <div>
          <h2>Velkommen til Forum</h2>
           <h:form>
          <h:panelGrid columns="2">
            <h:outputLabel value="Navn:"/> <h:inputText id="navn" value="#{forumbean.navn}" readonly="#{forumbean.updating}"/>
            <h:outputLabel value="Melding:"/> <h:inputText id="mld" value="#{forumbean.mld}"/>
            <h:commandButton value="Lagre"
                             action="#{forumbean.lagre}" />
            <h:commandButton value="Slette"
                             action="#{forumbean.slette}" rendered="true" />
            <h:commandButton value="Avbryt"
                             immediate="true"
                             action="forum" />
          </h:panelGrid>

          </h:form>
        </div>
      </ui:define>
        
    </ui:composition>
  </h:body>
      
        
</html>